package com.wish.g01.system.kafka.config;

import org.apache.kafka.clients.admin.NewTopic;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

@Configuration
public class KafKaConfig {

    @Bean
    public NewTopic testtopic(){
        return new NewTopic("log",3,(short)2);
    }

    @Bean
    public NewTopic testTopic(){
        return new NewTopic("test",3,(short)2);
    }
}
